import config from "@/config";
import http from "@/utils/request";

export default {
	job_list: {
		url: `${config.API_LOCAL_URL}/scheduler/job_list`,
		name: "申请列表",
		get: async function (params) {
			return await http.get(this.url, params);
		},
	},
	env_list: {
		url: `${config.API_LOCAL_URL}/scheduler/env_list`,
		name: "申请环境列表",
		get: async function (params) {
			return await http.get(this.url, params);
		},
	},
	app_list: {
		url: `${config.API_LOCAL_URL}/scheduler/app_list`,
		name: "申请应用列表",
		get: async function (params) {
			return await http.get(this.url, params);
		},
	},
	app_default_info: {
		url: `${config.API_LOCAL_URL}/scheduler/app_default_info`,
		name: "申请应用默认信息",
		get: async function (params) {
			return await http.get(this.url, params);
		},
	},

	job_create: {
		url: `${config.API_LOCAL_URL}/scheduler/job_create`,
		name: "申请应用默认信息",
		post: async function (params) {
			return await http.post(this.url, params);
		},
	},
};
